from pyecharts import options as opts
from pyecharts.charts import Bar
from pyecharts.faker import Faker

c = (
    Bar()
        .add_xaxis(Faker.days_attrs)
        .add_yaxis("商家A", Faker.days_values)
        .set_global_opts(
        title_opts=opts.TitleOpts(title="06柱状图通过水平滑块缩放数据"),
        datazoom_opts=opts.DataZoomOpts(),
    )
        .render("06柱状图通过水平滑块缩放数据.html")
)
